﻿//1. Write a method that asks the user for his name and prints “Hello, <name>” (for example, “Hello, Peter!”). Write a program to test this method.


using System;
using System.Collections.Generic;

class Program
{
    static void Main()
    {
        AskAndPrintName();
    }
    static void AskAndPrintName()
    {
        Console.WriteLine("What is your name?");
        string myName = Console.ReadLine();
        Console.WriteLine("Hellow, {0}!", myName);
    }
}
